<template>
    <transition enter-active-class="animated zoomIn">
        <div class="bigBtn" v-show="showBigBtn">
            <div class="alosBigBtn" v-show="showBigBtn">
                <h2 class="title">
                    {{title}}
                </h2>
                <div class="btnGroup clearfix">
                    <a @click.stop="notClick" class="btn not">{{notBtnName}}</a>
                    <a @click.stop="sureClick" class="btn sure">{{sureBtnName}}</a>
                </div>
            </div>
        </div>
    </transition>
</template>
<script type="text/ecmascript-6">
    export default {
        name: "",
        props: {
            title: {
                type: String,
                default: '温馨提示'
            },
            sureClick: {
                type: Function
            },
            notClick: {
                type: Function,
            },
            showBigBtn: {
                type: Boolean
            },
            notBtnName: {
                type: String,
                default: '取消'
            },
            sureBtnName: {
                type: String,
                default: '确定'
            }
        },
        data () {
            return {}
        },
        methods: {}
    }
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
    .bigBtn {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        background: rgba(0, 0, 0, .1);
        z-index: 45645;
        .alosBigBtn {
            position: absolute;
            margin: auto;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            width: 600px;
            height: 320px;
            background: #f5f5f5;
            border-radius: 4px;
            box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
        }
        h2 {
            height: 60px;
            line-height: 60px;
            font-size: 30px;
            padding: 30px 40px 30px 40px;
            color: #1f2d3d;
            cursor: default;
        }
        .btnGroup {
            height: 200px;
            position: relative;
            .btn {
                position: absolute;
                border-radius: 2px;
                cursor: pointer;
                text-decoration: none;
                color: #fff;
                display: inline-block;
                text-align: center;
                pointer-events: auto;
                user-select: none;
                -webkit-user-select: none;
                background: #33D795;
                padding: 30px 45px;
                font-size: 30px;
                box-shadow: 1px 1px 20px rgba(0, 0, 0, .3);
                bottom: 30px;
            }
            .not {
                left: 60px;
            }
            .sure {
                right: 60px;
            }
        }
    }
</style>